package js.dwim.client.domain;

import java.awt.Graphics2D;
import java.awt.geom.Point2D;

public class MapNode implements GameElement
{    
    private int radius;
    private Point2D location;
    private Player player;
    
    public MapNode( Player player, Point2D location, int radius )
    {
        this.setPlayer( player );
        this.location   = location;
        this.radius     = radius;
    }
    
    public void draw( Graphics2D g )
    {
        g.drawOval( (int)location.getX() - radius, 
                (int)location.getY() - radius, 
                radius * 2, 
                radius * 2 );
    }

    public void update()
    {
        
    }

    public Point2D getLocation()
    {
        return location;
    }

    public void setPlayer( Player player )
    {
        this.player = player;
    }

    public Player getPlayer()
    {
        return player;
    }
}
